home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ RIVA 128 2.xpl < prev    next >
Text File  |  2000-08-07  |  2KB  |  61 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="7"
  3. "COUNT"="3"
  4. "UIPATH"="Hardware\Video Cards\NVidia\Riva 128"
  5. "NAME"="Texture Quality"
  6. "VERSION"="1.06"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Best image, slow speed"
  9. "TEXT 2"="Good image, normal speed (default)"
  10. "TEXT 3"="Bad image quality, pure speed"
  11. "DESCRIPTION 1"="Some options for your Riva 128 3D card." 
  12. "DESCRIPTION 2"="NOTE: Please use the NVidia reference drivers from http://www.nvidia.com with this plug-in as it may not work properly with third party drivers such as Creative Labs, Hercules, etc.  This plug-in is designed for use with the NVidia reference drivers."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17. "COMMENT 2"="Thanks to CptSiskoX for his help!"
  18.  
  19. sPC="HKLM\SOFTWARE\NVIDIA Corporation\OpenGL\"
  20. sV1="HKLM\SOFTWARE\NVIDIA Corporation\OpenGL\TextureQuality" 'DW 1,2,3
  21. Sub Plugin_Initialize 
  22.  if RegPathExists(sPC) then
  23.  
  24.     i=RegReadValue(sV1)
  25.     if i=1 then
  26.        SetUiElement 1,true
  27.     else
  28.        if i=3 then
  29.           SetUiElement 3,true
  30.        else
  31.           SetUiElement 2,true
  32.        end if
  33.     end if
  34.  
  35.  else
  36.     Call Disable()
  37.  end if   
  38. End Sub
  39.  
  40.  
  41. Sub Plugin_CheckData(ElementIndex)
  42. End Sub
  43.  
  44.  
  45.  
  46. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  47.  if GetUIElement(1)=true then i=1
  48.  if GetUIElement(2)=true then i=2
  49.  if GetUIElement(3)=true then i=3
  50.  
  51.  Call RegWriteValue(sV1,i,2)
  52.  Call Restart()
  53. End Sub
  54.  
  55.  
  56. Sub Plugin_Terminate 
  57. End Sub
  58.  
  59.  
  60.  
  61.